//
// Created by dongbo01 on 5/12/17.
//

#ifndef LEVELDBTEST_JOB_H
#define LEVELDBTEST_JOB_H

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <atomic>
#include <mutex>
#include <memory>
#include <atomic>


const int JOBMAXNUM = 2000000;

struct JOB {
    static std::atomic_llong num;
    long long offset = 0;//真实offset
    int appid = 0;
    int groupid = 0;
    int xyid = 0;
    int slen = 0;
    int flag = 0;
    int areaid = 0;
    char tabname[256];
    char topic[256];
    char content[2048];

    JOB();

    JOB(int xyid, int _appid, int _groupid, int _areaid, std::string _topic, std::string _tab, std::string _content);

    ~JOB();
};


#endif //LEVELDBTEST_JOB_H
